<#assign nojs=true>
<#include "/WEB-INF/default/fragment/header.ftl">
<body>

<script type="text/javascript" src="${request.contextPath}/assets/js/jquery.js"></script>
<script src="//cdn.bootcss.com/moment.js/2.10.6/moment.min.js"></script>
<script type="text/javascript" src="${request.contextPath}/assets/js/bootstrap.min.js"></script>

<#include "/WEB-INF/default/fragment/nav.ftl">

<link href="//cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker-standalone.min.css" rel="stylesheet">
<link href="//cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
<script src="//cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>

<style>
.legend {
  border-bottom: 1px solid red;
  padding: 0px;
}
fieldset {
  width: 80%;
  margin: 0 auto;
}
</style>
<div class="container">
  <div class="tms-logo"><img class="center-block" src="${request.contextPath}/assets/images/logo.png" alt=""></div>
</div>

<div class="container">
<form class="form-horizontal" action="${request.contextPath}/team-invite.action?team.id=${team.id}" method="post">

  <legend class="clearfix">
    <div class="pull-left"><h4>${title}</h4></div>
    <div class="pull-right">
      <a href="${request.contextPath}/team-${team.id}.action" class="btn btn-default">首页团队</a>
      <button type="submit" class="btn btn-success">确认邀请</button>
    </div>
  </legend>
  <fieldset>

    <div class="form-group">
      <label class="col-sm-2 control-label">用户邮箱</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" name="email" value="<#if email??>${email}</#if>">
        <p class="help-block">输入邮箱，并点击邀请按钮将其他注册用户加入到本团队中成为团队的一员</p>
        <#if fieldErrors?exists && fieldErrors['email']?exists>
        <p class="help-block"><span class="text-danger">${fieldErrors['email']}</span></p>
        </#if>
      </div>
    </div>
    
  </fieldset>
</form>
</div>

</body>
<#include "/WEB-INF/default/fragment/footer.ftl">
